﻿using System.ComponentModel.DataAnnotations;

namespace RuoVea.OmiApi.SystemApp.Service.Dto;

/// <summary>
/// 
/// </summary>
public class PosInput
{
    /// <summary>
    /// 名称
    /// </summary>
    public string Name { get; set; }

    /// <summary>
    /// 编码
    /// </summary>
    public string Code { get; set; }
}

/// <summary>
/// 
/// </summary>
public class AddPosInput : SysPosition
{
    /// <summary>
    /// 名称
    /// </summary>
    [Required(ErrorMessage = "职位名称不能为空")]
    public override string Name { get; set; }
}

/// <summary>
/// 
/// </summary>
public class UpdatePosInput : AddPosInput
{
}

/// <summary>
/// 
/// </summary>
public class DeletePosInput : BaseIdInput
{
}